package com.java.dormitorymanager.dao;

import com.java.dormitorymanager.pojo.Dorm;
import com.java.dormitorymanager.pojo.Student;

import java.util.List;

public interface IDormDao
{
    List<Dorm> findAllManDorm();

    List<Dorm> findAllWomanDorm();

    void addDorm(Dorm dorm);

    void addMaleStudentToDorm(String dormNumber,int id);

    void addAmount(int amount,String dormNumber);

    List<Student> findAllMSByDormNumber(String dormNumber);

    List<Student> findAllStudentsByDornum(String dornum);

    void deleteStudentFromDormById(int id);

    void updateScoreByDornum(String dornum,int score);

    void deleteDormByDornum(String dornum);

    void updateDormInfoById(int id,String dornum);

    void updateStudentDornumByMetaDornum(String dornum,String metaDornum);

    List<Dorm> showAllManDormUpWithScore();

    List<Dorm> showAllManDormDownWithScore();

    void addFemaleStudentToDorm(String dormNumber, int id);

    List<Dorm> showAllWomanDormUpWithScore();

    List<Dorm> showAllWomanDormDownWithScore();

    Dorm findDormByDornum(String dornum);
}
